package com.mzj.saas.mservice.department.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "saas_user_department_ref")
public class UserDepartmentRef extends IdEntity {
    /*
     *部门Id
     */
    @Column(name = "dep_id", nullable = true)
    private Long depId;
    /*
     *用户Id
     */
    @Column(name = "user_id", nullable = true)
    private String userId;
    /*
     *1用户部门 2授权部门
     */
    @Column(name = "type", nullable = true)
    private Integer type;
    public Long getDepId() {
        return depId;
    }

    public void setDepId(Long depId) {
        this.depId = depId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }



}
